package com.javaAPI.demo11;

import java.text.ParseException;
import java.util.Date;

public class Test {
    public static void main(String[] args) throws ParseException {


        String s = DateUtils.dateToString(new Date(), "yyyy-MM-dd HH:mm:ss");
        System.out.println(s);

        Date date = DateUtils.stringToDate(s, "yyyy-MM-dd HH:mm:ss");
        System.out.println(date);

        System.out.println("--------------------------------");
        String cuDateString = DateUtils.getCuDateString();
        System.out.println(cuDateString);

    }
}
